import { ActionButtonsTemplate, SelectOption } from '@/api/global/types'
import { UnwrapRef } from 'vue'

export type CurdData = {
  id: number
  sku: string
  cname: string
  code: string
  style_code: string
  category: string
  brand: string
  color_specs: string
  condition: string
  expiration_date: string
  hashrate: string
  computing_unit: string
  power: string
  weight: number
  gross_weight: string
  transport_weight: string
  dimensions: string
  gross_dimensions: string
  volume: string
  freight_tag: string
  model: string
  photo: string
  describe: string
  remark: string
  min_num: number
  estimated_ship_date: string
  cost: number
  sales_rate: number
  size: string[]
  package_height: string
  package_length: string
  package_width: string
  package_size: string
  unit_price: number
  sales_price: number
  freight_price: number
  is_advance: number
  advance_ratio: number
  advance_amount: string
  creator: string
  create_time: string
  updater: string
  update_time: string
  is_del: number
  status: number
  is_parts: string
  step_discount: string
  level: number
  main_photo: string[]
  main_photo_urls: UploadItem[]
  product_accessories_linked_data: []
  model_id: number
  billing_weight: number
  release_date: string | null
}

export type UploadItem = {
  url: string
  name: string
  response: string
}

export type FieldEnum = {}

export type SchemaConfig = {
  actionButtonsTemplate?: ActionButtonsTemplate
  fieldEnum?: FieldEnum
  uploadList?: string[]
  UploadArr?: UploadItem[]
  productPreViewIdStore?
  setValues?: UnwrapRef<any>
  categoryList?
  brandList?
  currencyList?
  modelList?
  standardsList?
}
